package com.shycloud.mido.member.api.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

@Data
@ApiModel
@TableName(value = "basic_shopping_banner")
public class BasicShoppingBanner {

	/** 主键ID */
	@ApiModelProperty("主键ID")
	@TableId(value = "id", type = IdType.INPUT)
	private Integer id;
	/** 图片 */
	@ApiModelProperty("图片")
	@TableField(value = "img_url")
	private String imgUrl;
	/** 关联超链接 */
	@ApiModelProperty("关联超链接")
	@TableField(value = "link")
	private String link;
	/** banner标签 */
	@ApiModelProperty("banner标签")
	@TableField(value = "tag")
	private String tag;
	/** 排序 */
	@ApiModelProperty("排序")
	@TableField(value = "sort")
	private Integer sort;
	/** 状态（0启用 1禁用） */
	@ApiModelProperty("状态（0启用 1禁用）")
	@TableField(value = "`status`")
	private Integer status;
	/** 类别Id */
	@ApiModelProperty("类别Id")
	@TableField(value = "goods_id")
	private Integer goodsId;
	/** 关联曲集ID */
	@ApiModelProperty("关联曲集ID")
	@TableField(value = "collection_id")
	private Integer collectionId;
	/**
	 * 关联类型: 0.未关联 1.关联曲集ID 2.关联Link 3.关联意见反馈页面 4.关联视频 5.关联周广仁视频列表 6.关联图片 7.关联淘宝页面（传goods_id） 8.关联个人设置 9.关联云课堂页面
	 */
	@ApiModelProperty("关联类型: 0-无，2-关联网页，4-链接视频，6-连接图片，7.关联淘宝页面（传 goods_id）, 8.关联个人设置, 9.关联云课堂页面")
	@TableField(value = "associate_type")
	private Integer associateType;

	@ApiModelProperty("图片名称")
	@TableField(value = "name")
	private String imgName;

	@ApiModelProperty("上传时间")
	@TableField(value = "create_time")
	private Date createTime;

	@ApiModelProperty("淘宝ID")
	@TableField(value = "taobao_id")
	private long taobaoId;

	@ApiModelProperty("任务ID")
	@TableField(value = "task_id")
	private Integer taskId;

	public static final String COL_ID = "id";

	public static final String COL_IMG_URL = "img_url";

	public static final String COL_LINK = "link";

	public static final String COL_TAG = "tag";

	public static final String COL_SORT = "sort";

	public static final String COL_STATUS = "status";

	public static final String COL_GOODS_ID = "goods_id";

	public static final String COL_COLLECTION_ID = "collection_id";

	public static final String COL_ASSOCIATE_TYPE = "associate_type";
}